package com.base.core.exception.enums;

import com.base.core.exception.BaseErrorCode;

public class UserErrorCode extends BaseErrorCode {


    // 模块前缀
    public static final int MODULE_PREFIX = 1;
    // 具体错误码
    public static final UserErrorCode USER_NOT_FOUND =
            new UserErrorCode(1, "用户不存在");
    public static final UserErrorCode LOGIN_FAILED =
            new UserErrorCode(2, "用户名或密码错误");
    public static final UserErrorCode ACCOUNT_LOCKED =
            new UserErrorCode(3, "账户已锁定");
    //JWT令牌过期
    public static final UserErrorCode JWT_TOKEN_EXPIRED =
            new UserErrorCode(4, "JWT令牌过期");


    private UserErrorCode(int code, String message) {
        super(code, message);
    }

    @Override
    protected int getModulePrefix() {
        return MODULE_PREFIX;
    }


}
